﻿package gui.hug;

import flash.display.SimpleButton;
  
class Button extends SimpleButton {
	public var bt  :  UInt; // Button Type
	public var label : String; // Label

	public static inline var LINK_BUTTON : UInt = 0;
	public static inline var BLUE_BUTTON : UInt = 1;
	public static inline var GRAY_BUTTON : UInt = 2;

	public function new(label : String, x : Float, y : Float, button_type : UInt) {
		this.x = x;
		this.y = y;
		bt = button_type;
		useHandCursor = true;
		//this.label = label;
		super();
		setLabel(label);
	}

	public function setLabel(value : String) {
		label = value;
		updateButton();
	}

	public function getLabel() : String {
		return label;
	}
	
	// Should be overrided
	public function updateButton()  {} 
}
